package com.example.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author: zhuxiaokang
 * @CreateTime: 2025-05-07
 * @Description: 敏感类型
 * @Version: 1.0
 */
@Data
@TableName("sys_sensitive_type")
public class SensitiveType {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description ="敏感类型名称")
    private String name;

    @Schema(description ="类型 系统内置，自定义")
    private String type;

    @Schema(description ="识别对象")
    private String discern;

    @Schema(description ="正则表达式")
    private String regex;

    @Schema(description ="创建人")
    private String createdBy;

    @Schema(description ="创建时间")
    private LocalDateTime createdTime;

    @Schema(description ="更新人")
    private String updatedBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description ="更新时间")
    private LocalDateTime updatedTime;
}
